import { containsNewline as i } from './util-contains-newline.js';
function s(o, n, t) {
  if ((n == null ? void 0 : n.type) === 'flow-collection') {
    const e = n.end[0];
    e.indent === o &&
      (e.source === ']' || e.source === '}') &&
      i(n) &&
      t(
        e,
        'BAD_INDENT',
        'Flow end indicator should be more indented than parent',
        !0,
      );
  }
}
export { s as flowIndentCheck };
